package Class;

import experience3.*;

public class Test {

	 public static void main(String[] args) {
	  Student stu0 = new Student(101,"一","boy","大数据","篮球");
	  Student stu1 = new Student(102,"二","girl");
	  System.out.println("学生选课系统信息Student：");
	  System.out.println(stu0);
	  System.out.println(stu1);
	  Teacher tea0 = new Teacher(1111,"张", "woman");
	  System.out.println("老师授课信息Teacher:");
	  System.out.println(tea0);
	  Course cour0 = new Course(001,"线性代数");
	  Course cour1 = new Course(002,"线性代数","教103",tea0);
	  Course cour2 = new Course(003,"大学物理");
	  stu0.addCourse(cour0);
	  stu0.addCourse(cour2);
	  stu1.addCourse(cour2);
	  stu1.addCourse(cour0);
	  stu1.removeCourse(cour2);
	  stu0.displayCourse();
	  cour0.removeStudent(stu1);
	  cour1.displayStudent();
	 }
	 
	}
